how did the ussr work